package com.ele.server.util.openntk;

//import opennlp.tools.parser.Parse;

public class SQAnswerGenerator/* implements Generator*/ {
    /*private Parse topParse;

    public SQAnswerGenerator(Parse parse) {
        topParse = parse;
    }

    public String generate() {
        StringBuilder answer = new StringBuilder("Yes ,");

        Parse verb = null;
        Parse np = null;
        Parse adjp = null;

        Parse[] parses = topParse.getChildren();
        for (Parse parse : parses) {
            if (parse.getType().equals("VBZ")) {
                verb = parse;
            } else if (parse.getType().equals("NP")) {
                np = parse;
            } else if (parse.getType().equals("ADJP")) {
                adjp = parse;
            }
        }

        if (adjp != null) {
            answer.append(" ").append(np).append(" ").append(verb).append(" ").append(adjp).append("");
        }

        return answer.toString();
    }*/
}
